﻿@model Jingxing.Models.Admin.BaseModel
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>@ViewBag.Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <link href="@Url.Content("~/Content/themes/admin/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />
    <link href="../../Content/themes/default/jquery.mobile-1.1.0-rc.1.min.css" rel="stylesheet" type="text/css" />
    @*<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.css" /> *@
    <link rel="stylesheet" href="../../Content/themes/admin/site.css" />
    <script type="text/javascript" src="../../Scripts/jquery-1.7.1.min.js"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
    <script src="../../Scripts/jquery.mobile-1.1.0-rc.1.min.js" type="text/javascript"></script>
    @*<script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script> *@
    <script type="text/javascript" src="../../Scripts/site.js"></script>

</head>

<script type="text/javascript">
    $.mobile.ajaxEnabled = false; 
    jQuery(function ($) {
        $.datepicker.regional['zh-CN'] = {
            clearText: '清除',
            clearStatus: '清除已选日期',
            closeText: '关闭',
            closeStatus: '不改变当前选择',
            prevText: '<上月',
            prevStatus: '显示上月',
            prevBigText: '<<',
            prevBigStatus: '显示上一年',
            nextText: '下月>',
            nextStatus: '显示下月',
            nextBigText: '>>',
            nextBigStatus: '显示下一年',
            currentText: '今天',
            currentStatus: '显示本月',
            monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthNamesShort: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
            monthStatus: '选择月份',
            yearStatus: '选择年份',
            weekHeader: '周',
            weekStatus: '年内周次',
            dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
            dayNamesShort: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
            dayNamesMin: ['日', '一', '二', '三', '四', '五', '六'],
            dayStatus: '设置 DD 为一周起始',
            dateStatus: '选择 m月 d日, DD',
            dateFormat: 'yy-mm-dd',
            firstDay: 1,
            initStatus: '请选择日期',
            isRTL: false
        };
        $.datepicker.setDefaults($.datepicker.regional['zh-CN']);
    });
</script>
<body>
    <div data-role="page" id="home">
        <div data-role="header">
            <a href="/Admin" data-icon="home" data-role="button">后台首页</a>
            <h1>@ViewBag.Title</h1>
            <a href="/Admin/Logout" data-icon="gear" data-role="button">退出</a>
        </div>
        <div data-role="content" id="site-content">
            <div class="site-content-secondary">
                <ul data-role="listview" data-inset="true">
                    @foreach (var menu in Model.MenuList)
                    {
                        <li data-role="list-divider">@menu.Title</li>
                        for (int i = 0; i < menu.SubList.Count ; i++)
                        {
                            if (menu.SubList[i].IsSelect)
                            {
                                <li class="ui-btn-active" id='@menu.Title'><a href="@menu.SubList[i].Key">@menu.SubList[i].Title</a></li>
                            }
                            else
                            {
                                <li id='@menu.Title'><a href="@menu.SubList[i].Key">@menu.SubList[i].Title</a></li>
                            }
                        }
                    }
                </ul>
            </div>
            <div class="site-content-primary">
                <div class="site-content-caption ui-li ui-li-divider ui-btn ui-bar-a ui-btn-hover-undefined ui-btn-up-undefined">
                    @if (!string.IsNullOrEmpty(Model.Caption))
                    {
                        <p>@Model.Caption</p>
                    }
                     @if (!string.IsNullOrEmpty(Model.NewLink))
                    {
                        <a href="@Model.NewLink" data-role="button" data-icon="plus" data-inline="true" data-mini="true" class="ui-btn-right">新增</a>
                    }
                    <div class="clear"></div>
                </div>
                @RenderBody()
            </div>
        </div>
        <div data-role="footer">
            <p>
                © 2011-2012 Anson's Projects</p>
        </div>
    </div>
</body>
</html>
